package bar.dark.lee.select;

import android.os.Parcel;
import android.os.Parcelable;

public class SelectSubData implements Parcelable
{
	// in_out_sub
	private String id;
	private String type;
	private String money;
	private String name;
	private String cateogory;
	private String linkid;
	
	public SelectSubData(){};
	
	public SelectSubData(Parcel source)
	{
		this.id = source.readString();
		this.type = source.readString();
		this.money = source.readString();
		this.name = source.readString();
		this.cateogory = source.readString();
		this.linkid = source.readString();
	}
	
	@Override
	public int describeContents()
	{
		return 0;
	}
	
	@Override
	public void writeToParcel(Parcel dest, int flags)
	{
		dest.writeString(this.getId());
		dest.writeString(this.getType());
		dest.writeString(this.getMoney());
		dest.writeString(this.getName());
		dest.writeString(this.getCateogory());
		dest.writeString(this.getLinkid());
	}
	
	public static Parcelable.Creator<SelectSubData> CREATOR = new Creator<SelectSubData>()
	{
		@Override
		public SelectSubData[] newArray(int size)
		{
			return new SelectSubData[size];
		}
		
		@Override
		public SelectSubData createFromParcel(Parcel source)
		{
			return new SelectSubData(source);
		}
	};
	
	public String getId()
	{
		return id;
	}
	public void setId(String id)
	{
		this.id = id;
	}
	public String getType()
	{
		return type;
	}
	public void setType(String type)
	{
		this.type = type;
	}
	public String getMoney()
	{
		return money;
	}
	public void setMoney(String money)
	{
		this.money = money;
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public String getCateogory()
	{
		return cateogory;
	}
	public void setCateogory(String cateogory)
	{
		this.cateogory = cateogory;
	}
	public String getLinkid()
	{
		return linkid;
	}
	public void setLinkid(String linkid)
	{
		this.linkid = linkid;
	}
}
